package no.hib.mod250.chat.client.service;

import no.hib.mod250.chat.client.service.ChatService.Result;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ChatServiceAsync {

	void doInitialize(AsyncCallback<ChatService.Result> callback);

	void doMessageDelete(long lastUpdate, long id,
			AsyncCallback<ChatService.Result> callback);

	void doMessageNew(long lastUpdate, String message,
			AsyncCallback<ChatService.Result> callback);

	void doMessagesDelete(long lastUpdate, AsyncCallback<Result> callback);

	void doUpdate(long lastUpdate, AsyncCallback<ChatService.Result> callback);

	void doUserAvailable(long lastUpdate,
			AsyncCallback<ChatService.Result> callback);

	void doUserBusy(AsyncCallback<Void> callback);

	void doUserOffline(AsyncCallback<Void> callback);

}
